package com.bdqn.repository;

import com.bdqn.pojo.Right;
import com.bdqn.pojo.Role;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * @version 2024-10-28
 * @Author:T369曹任柱
 */
public interface RightRepository extends JpaRepository<Right,Long> {
    List<Right> findRightsByRolesOrderByRightCode(Role role);
}
